
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<%@ page contentType="text/html; charset=utf-8"%>
	<%@ include file="/commons/taglibs.jsp"%>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<title>用户修改</title>
		<%@ include file="/commons/css_js_head.jsp"%>
<script type="text/javascript">
//复写Url
doUpdateUrl = "${ctx }/base/tsUserAction!doUpdate.ts";
doReturnUrl = "${ctx }/base/tsUserAction!doList.ts";


//更新
function doUpdate(){
   var _form = document.forms[0];
   if(doUpdateUrl == ''){
   	alert('请设置正确的URL!');
   	return false; 
   }
	
	_form.action = doUpdateUrl;
	_form.submit();
	parent.window.location.reload();
}

//关闭小窗口
function onCancel()
{
	closeWindow();
}
function closeWindow()
{
	self.parent.tb_remove();
}
</script>
	</head>

	<body style="overflow-x: hidden">
		<div class="mTitle">
			<span class="hidsearch"></span>
			<b class="bbig">用户修改</b> 带
			<b class="fred"> * </b>号为必填项
		</div>

		<form action="/base/tsUserAction" method="post">
			<s:hidden name="userInfo.uiid"></s:hidden>
			<s:hidden name="userInfo.password"></s:hidden>
			<s:hidden name="userInfo.createDate"></s:hidden>
			<s:hidden name="userInfo.type"></s:hidden>
			<!--list -->
			<div class="mainAdd">
				<table class="addTable">

					<tr>
						<td colspan="4">
							<b class="fblue">1、账号信息</b>
						</td>
					</tr>

					<tr>
						<th>
							<b class="fred"> * </b> 用户账号：
							
						</th>
						<td colspan="3">
							<s:textfield name="userInfo.userName" maxlength="32" theme="simple" cssStyle="background:#ECEEEC" readonly="true" />
							<span id="userAccountInfo"></span>
						</td>
						
					</tr>

					<tr>
						<td colspan="4">
							<b class="fblue">2、用户基本信息</b>
						</td>
					</tr>
					
					<tr>
						<th>
							<b class="fred"> * </b> 创建日期：
						</th>
						<td>
							<s:textfield name="userInfo.createDate" maxlength="16" theme="simple"></s:textfield>
							<span id="userNameInfo"></span>
						</td>
						<th>
							<b class="fred"> * </b> 公司：
						</th>
						<td>
							<s:textfield name="userInfo.company" maxlength="16" theme="simple"></s:textfield>
							<span id="orgIdInfo"></span>
						</td>
					</tr>
					
					<tr>
						<th>
							<b class="fred"> * </b> 信息机安装地址：
						</th>
						<td>
							<s:textfield name="userInfo.address" maxlength="16" theme="simple"></s:textfield>
						</td>
						
						<th>
							<b class="fred"> * </b> 备注：
						</th>
						<td>
							<s:textfield name="userInfo.remark" maxlength="64" theme="simple"></s:textfield>
							<span id="userMobileInfo"></span>
						</td>
					</tr>

					
					
					
				</table>
			</div>
			<!--end list -->
			<div class="addToolbar">
				<p>
					<input class="btn" name="btn_confirm" value="确定" type="button"
						onclick="doUpdate();" />
					<input class="btn" name="btn_return" value="返回" type="button"
						onclick="onCancel();"  />
				</p>
			</div>

		</form>

	</body>

<script type="text/javascript">
document.onkeydown = function(e) {
	if (!e)
		e = window.event;//火狐中是 window.event
	if ((e.keyCode || e.which) == 13) {
		doUpdate();
	}
}
</script>
</html>
